//
//  billTableViewCell.m
//  ioschishan
//
//  Created by 千翼网络科技 on 2017/7/13.
//  Copyright © 2017年 qianyi. All rights reserved.
//

#import "billTableViewCell.h"

@implementation billTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:@"identifier"]) {
        
        [self initView];
    }
    return self;
}

#pragma mark ---------------- init -----------------

- (void)initView{
    
    self.backgroundColor = getColor(@"ffffff");
    
    _nameLable = [[UILabel alloc]init];
    _nameLable.text = @"动态";
    _nameLable.textColor = getColor(@"4a4a4a");
    _nameLable.textAlignment = NSTextAlignmentLeft;
    _nameLable.font = get4sFont(13);
    [self addSubview:_nameLable];
    [_nameLable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self).with.offset(screenScale(15));
        make.left.mas_equalTo(self).with.offset(screenScale(15));
        
        
    }];
    
    _dateLable = [[UILabel alloc]init];
    _dateLable.text = @"2017-06-26";
    _dateLable.textColor = getColor(@"4a4a4a");
    _dateLable.textAlignment = NSTextAlignmentLeft;
    _dateLable.font = get4sFont(12);
    [self addSubview:_dateLable];
    [_dateLable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self).with.offset(screenScale(13.5));
        make.right.mas_equalTo(self).with.offset(screenScale(-15));
        
        
    }];
    
    _messageLable = [[UILabel alloc]init];
    _messageLable.text = @"打赏";
    _messageLable.textColor = getColor(@"9b9b9b");
    _messageLable.textAlignment = NSTextAlignmentLeft;
    _messageLable.font = get4sFont(12);
    [self addSubview:_messageLable];
    [_messageLable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self).with.offset(screenScale(35));
        make.left.mas_equalTo(self).with.offset(screenScale(15));
        
        
    }];
    
    _moneyLable = [[UILabel alloc]init];
    _moneyLable.text = @"水滴";
    _moneyLable.textColor = getColor(@"4a4a4a");
    _moneyLable.textAlignment = NSTextAlignmentLeft;
    _moneyLable.font = get4sFont(13);
    [self addSubview:_moneyLable];
    [_moneyLable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self).with.offset(screenScale(33.5));
        make.right.mas_equalTo(self).with.offset(screenScale(-15));
        
        
    }];
    
    _moneyNumLable = [[UILabel alloc]init];
    _moneyNumLable.text = @"-1";
    _moneyNumLable.textColor = getColor(@"ff415e");
    _moneyNumLable.textAlignment = NSTextAlignmentLeft;
    _moneyNumLable.font = get4sFont(13);
    [self addSubview:_moneyNumLable];
    [_moneyNumLable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self).with.offset(screenScale(33.5));
        make.right.mas_equalTo(_moneyLable.mas_left).with.offset(screenScale(-10));
        
        
    }];
    
    _threadView = [[UIView alloc]init];
    _threadView.backgroundColor = getColor(@"eeeeee");
    [self addSubview:_threadView];
    [_threadView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(self).with.offset(0);
        make.left.mas_equalTo(self).with.offset(screenScale(15));
        make.width.mas_equalTo(scrWidth() - screenScale(15));
        make.height.mas_equalTo(screenScale(1));
    }];
}

@end
